package com.ethink.platform.util.model;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 吉客云开放平台销售单查询接口响应结果类
 *
 * @Author: lzy
 * @Date: Created in 2022/11/23 10:53
 * ModifiedBy:
 * Version:
 */
@Data
public class JackyunOmsTradeFullInfoResponse {
    private Integer totalResults;

    private List<Trade> trades;

    @Data
    public static class Trade {
        private String tradeId;

        private String tradeNo;

        private BigDecimal checkTotal;

        private String chargeCurrency;

        private String accountName;

        private Integer payType;

        private String payNo;

        private Integer tradeFrom;

        private String onlineTradeNo;

        private String gmtCreate;

        private String gmtModified;

        private String consignTime;

        private String confirmTime;

        private Integer payStatus;

        private String chargeCurrencyCode;

        private BigDecimal chargeExchangeRate;

        private Integer tradeStatus;

        private String tradeTime;

        private String payTime;

        private String completeTime;

        private String shopTypeCode;

        private String shopId;

        private String shopName;

        private String warehouseCode;

        private String warehouseName;

        private Integer tradeType;

        private List<GoodsDetail> goodsDetail;

        @Data
        public static class GoodsDetail {
            private String subTradeId;

            private String goodsNo;

            private String goodsName;

            private String specName;

            private String barcode;

            private BigDecimal sellCount;

            private String unit;

            private BigDecimal sellPrice;

            private BigDecimal customerPrice;

            private BigDecimal sellTotal;

            private BigDecimal customerTotal;

            private BigDecimal cost;

            private BigDecimal discountTotal;

            private BigDecimal discountFee;

            private BigDecimal taxFee;

            private BigDecimal taxRate;

            private BigDecimal shareFavourableFee;

            private String cateName;

            private String brandName;

            private String tradeGoodsNo;

            private String tradeGoodsName;

            private String tradeGoodsSpec;

            private String sourceTradeNo;

            private String sourceSubtradeNo;

            private String platCode;
        }
    }
}
